{% extends "base.html" %}
{% load tasks_tags %}

{% block content %}
<script src="{{ media_url }}/jquery.js" type="text/javascript"></script>
<script src="{{ media_url }}/tasks.js" type="text/javascript"></script>

{% if overdue_tasks %}
    <h4>overdue</h4>
    {% for task in overdue_tasks %}
        {% task_single %}
    {% endfor %}
{% endif %}

{% if today_tasks %}
    <h4>today</h4>
    {% for task in today_tasks %}
        {% task_single %}
    {% endfor %}
{% endif %}

{% if tomorrow_tasks %}
    <h4>tomorrow</h4>
    {% for task in tomorrow_tasks %}
        {% task_single %}
    {% endfor %}
{% endif %}

{% if thisweek_tasks %}
    <h4>this week</h4>
    {% for task in thisweek_tasks %}
        {% task_single %}
    {% endfor %}
{% endif %}

{% if nextweek_tasks %}
    <h4>next week</h4>
    {% for task in nextweek_tasks %}
        {% task_single %}
    {% endfor %}
{% endif %}

{% if later_tasks %}
    <h4>later</h4>
    {% for task in later_tasks %}
        {% task_single %}
    {% endfor %}
{% endif %}

{% if lastmonth_tasks %}
    <h4>last month</h4>
    {% for task in lastmonth_tasks %}
        {% task_single %}
    {% endfor %}
{% endif %}

{% task_add %}
{% endblock %}
